﻿namespace IceCS.DesignPattern.Core.SingletonPattern.Week
{
    /// <summary>
    /// 饿汉式
    /// </summary>
    public class WeekManager
    {
        private WeekManager()
        {
            InitCounter += 1;
        }

        private static readonly WeekManager _manager = new WeekManager();
        public static int InitCounter;
        public static WeekManager Instance => _manager;

        public string GetMonday()
        {
            return "星期一";
        }

        public string GetMondayNumber()
        {
            return "1";
        }
    }
}
